<?php
class SupplierAppController extends AppController {
    var $name = 'SupplierApp';

    function beforeFilter() {
        if ($this->Auth->user('prefix') != SUPPLIER_PREFIX) {
            $this->Session->setFlash("You cannot view Vendor and Customer page at same time.", 'flash/fail');
            $this->redirect('users/home');
        }
    }
}
?>